<?php

namespace App\Jobs;

use App\Plugins\Sms\SendInfo;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;

class SendResetMessage implements ShouldQueue
{
    use InteractsWithQueue, Queueable, SerializesModels;
    protected $_user;
    
    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct($_userInfo)
    {
        $this->_user = $_userInfo;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        $sendInfo = new SendInfo();
        $arr = $this->_user;
        $_filter = [];
        $_filter['password'] = $arr['password'];
        $_filter['alias'] = $arr['alias'];
        $mobile = $arr['mobile'];
        $sendInfo->Send(2, $_filter, $mobile, $sendTime = null, $extno = null);
    }
}
